<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <!-- 样式 -->
    <style>
      button {
        background-color: pink;
        font-size: 20px;
      }
    </style>
  </head>
  <body>
    <!-- 结构 -->
    <button>小曹许愿</button>
    <!-- 行为 -->
    <script>
      document.querySelector("button").onclick = function () {
        alert("小曹想要成为浴皇大帝");
      };
    </script>
  </body>
</html>
